﻿@model SimplCommerce.Module.ProductComparison.Areas.ProductComparison.ViewModels.AddToComparisonResult

<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
    <h4 class="modal-title" id="myModalLabel">@Localizer[Model.Message]</h4>
</div>
<div class="modal-body">
    @foreach (var product in Model.ProductComparisons)
    {
        <div class="row">
            <div class="col-md-3">
                <img alt="@product.ProductName" class="img-fluid" src="@product.ProductImage">
            </div>
            <div class="col-md-7">
                <h4>@product.ProductName</h4>
                <p>@product.CalculatedProductPrice.PriceString</p>
            </div>
            <div class="col-md-2 product-comparison-result-remove">
                <a href="#" class="remove-item-comparison" data-product-id="@product.ProductId">Remove</a>
            </div>
        </div>
    }    
</div>
<div class="modal-footer">
    <button type="button" class="btn btn-default" data-dismiss="modal">@Localizer["Continue shopping"]</button>
    <a href="~/compare-products" type="button" class="btn btn-default">@Localizer["Compare"]</a>
</div>
